import { NavLink } from "react-router-dom"
import React from 'react';
function Home(props: any) {
    return (
        <div className="link">
            {
                props.Routers.map((item: any, index: number) => {
                    if (!item.title) return
                    if (item.title) {
                        return <NavLink activeStyle={{ color: "red" }} to={item.path} key={index} className="navlink">
                            <span className={item.icon}></span>
                            <span>{item.title}</span>
                        </NavLink>
                    }
                })
            }
        </div>
    );
}
export default Home

